<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>05_缩放</title>
  <style>
    .outer{
      width: 200px;
      height: 200px;
      margin: 0 auto;
      border: 1px solid black;
      margin-top: 100px;
      /* 开启3D效果 */
      transform-style: preserve-3d;
      /* 设置景深 */
      perspective: 500px;
      /* 设置透视点的位置 */
      perspective-origin: 300px 102px;

    }
    .inner{
      width: 200px;
      height: 200px;
      background-color: skyblue;
      /* transform: scaleZ(4) rotateY(45deg); */
      /* x,y,x  分别缩放多少 */
      transform: scale3d(2,3,4);

    }
  </style>
</head>
<body>

  <div class="outer">
    <div class="inner">2D变换</div>
  </div>
</body>
</html>